/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.webbapps.cormac_susilo.wrappers;

import edu.webbapps.cormac_susilo.core.User;

/**
 * This class is used to expose the User over the resource api
 *
 * @author tor
 */
public class UserWrapper {

    private final User user;

    public UserWrapper(User u) {
        this.user = u;
    }

    public String getAvatar() {
        return this.user.getAvatar();
    }

    public Long getId() {
        return this.user.getId();
    }

    public String getName() {
        return this.user.getName();
    }

    public String getPassword() {
        return this.user.getPassword();
    }

    public double getTotalDistance() {
        return this.user.getTotal_distance();
    }

    public double getTotalTime() {
        return this.user.getTotal_time();
    }
    
    public String getGivenName() {
        return this.user.getGivenname();
    }

    public String getFamilyName() {
        return this.user.getFamilyname();
    }

    public String getEmail() {
        return this.user.getEmail();
    }
}
